package com.peanut.api;

import com.peanut.api.fallback.SpecFeignFallback;
import com.peanut.common.Result;
import com.peanut.dto.TabSpecInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "peanut-info-service",fallback = SpecFeignFallback.class)
public interface InfoFeign {

    @GetMapping("/info/selectById")
    Result<TabSpecInfoDTO> selectById(@RequestParam Long specId);

}
